package com.zhongkun.datahome.service.constant;

/**
 * @Author: lifengsheng
 * @Date: 2025/4/15 15:51
 * @Desc
 */
public enum YesOrNoEnum {
    YES(1, "是"),
    NO(0, "否");

    private Integer code;

    private String desc;

    YesOrNoEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public boolean is(Integer code) {
        return this.code.equals(code);
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
